package de.fhaugsburg.games.boardgames.scrabble.scrabbleboard;


public enum LetterPiece implements IPiece {

	A(1,"A",5),
	B(3,"B",2),
	C(4,"C",2),
	D(1,"D",4),
	E(1,"E",15),
	F(4,"F",2),
	G(2,"G",3),
	H(2,"H",4),
	I(1,"I",6),
	J(6,"J",1),
	K(4,"K",2),
	L(2,"L",3),
	M(3,"M",4),
	N(1,"N",9),
	O(2,"O",3),
	P(4,"P",1),
	Q(10,"Q",1),
	R(1,"R",6),
	S(1,"S",7),
	T(1,"T",6),
	U(1,"U",6),
	V(6,"V",1),
	W(3,"W",1),
	X(8,"X",1),
	Y(10,"Y",1),
	Z(3,"Z",1),
	Ü(6,"Ü",1),
	Ö(8,"Ö",1),
	Ä(6,"Ä",1),
	//JOKER(0,"?",2)
	;
	
	private final int points;
	private final String symbol;
	private final int num;
	
	/**
	 * constructor for Letter info
	 * @param points
	 * @param symbol
	 */
	private LetterPiece(int points, String symbol, int num) {
		this.points = points;
		this.symbol = symbol;
		this.num = num;
	}
	
	/**
	 * returns points for letter
	 * @return
	 */
	public int getPoints(){
		return this.points;
	}
	
	/**
	 * returns symbol for letter
	 * @return
	 */
	public String getSymbol() {
		return " " + this.symbol + " ";
	}
	
	/**
	 * returns how often this letter is allowed
	 * @return
	 */
	public int getNum() {
		return this.num;
	}
}
